package com.tgy;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.tgy.util.robot;

import java.util.Scanner;

public class test {


    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        while(true) {
            String content = "";
            //控制台输入信息
            content = sc.nextLine();

            //接收返回的结果
            String result = robot.getResult(content);
            //把json格式的字符串转化为json对象
            JSONObject resultJson = JSON.parseObject(result);
            //获得text键的内容，并转化为string
            String back = resultJson.get("text").toString();



            //打印结果
            System.out.println(back);
            System.out.println(result);
        }


    }
}

